import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex);
const store = new Vuex.Store({
	state: {
		hasLoing: false,
		token: null,
		userInfo: {}, // 用户信息
		
	},
	mutations: {
		setToken(state, value) {
			state.token = value;
			state.hasLoing = true;
		},
		setUserInfo(state, value) {
			state.userInfo = value;
		},
		
		
	}
})
export default store
